package com.yangtzeu.jwc.domain;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class Note {
    public int id;
    public String username;
    public String model;
    public int replyid;
    public String number;
    public int up;
    public int down;
    public int isPublic;
    public int isShow;
    public int deep;
    public int floor;
    public String content;
    public String time;
    public List<Note> replys = new ArrayList<>();
    public int upordown;

    public Note parent;

    @Override
    public boolean equals(Object obj) {
        if(obj instanceof Note){
            return ((Note) obj).id == id;
        }
        return super.equals(obj);
    }

    @Override
    public String toString() {
        return "Note [id=" + id + ", username=" + username + ", model=" + model + ", replyid=" + replyid + ", number=" + number + ", up=" + up + ", down=" + down + ", isPublic=" + isPublic + ", isShow=" + isShow + ", deep=" + deep + ", floor=" + floor + ", content=" + content + ", time=" + time + ", replys=" + replys + ", upordown=" + upordown + ", parent=" + parent + "]";
    }

}
